package com.example.administrator.myapplication;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


/**
 * Created by Administrator on 2018/5/31.
 */

public class AlarmReceiver extends BroadcastReceiver{
    @Override
    public void onReceive(Context context,Intent intent){
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
        intent.setClass(context, NotificationService.class);
        context.startService(intent);

    }

}
